<?php
namespace Kxdrmobile\Model;
use Think\Model;
class MainKmModel extends Model{
	protected $trueTableName = 'sm_gifts_km'; 
	public $sid;
	public $gid;
	public $shopuid;
	public function getKmInGift(){
		$where["sid"]=$this->sid;
		$where["gid"]=$this->gid;
		$where["shopuid"]=$this->shopuid;
		$where["status"]=9;
		return $this->where($where)->getField("`id`,`cardno`,`secret`");
	}
}